import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    examType: 1, // 1考试 0培训
    studentName: "", //考生姓名
    studentId: 0, // 学生id
    endTime: "", //结束时间
    studentIdCard: "", // 学生照片
    examinationName: "", //考试名称
    equipmentName: "", // 设备名称
    ksksDisable: false, // 考试考试状态
    equipmentId: "", // 设备id
    newDate: "", //获取的网络时间
  },
  mutations: {
    setExamType(state, val) {
      state.examType = val;
    },
    setStudentName(state, val) {
      state.studentName = val;
    },
    setStudentId(state, val) {
      state.studentId = val;
    },
    setEndTime(state, val) {
      state.endTime = val;
    },
    setStudentIdCard(state, val) {
      state.studentIdCard = val;
    },  
    setExaminationName(state, val) {
      state.examinationName = val;
    },
    setEquipmentName(state, val) {
      state.equipmentName = val;
    },
    setKsksDisable(state, val) {
      state.ksksDisable = val;
    },
    setEquipmentId(state, val) {
      state.equipmentId = val;
    },
    setNewDate(state, val) {
      state.newDate = val;
    },
  
  },
  actions: {},
  modules: {},
});
